import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

export const docx = () => {
  return http.request("get", baseUrlApi("/ie/docx"));
};

export const addRule = (data?: object) => {
  return http.request("post", baseUrlApi("/ie/add_rule"), { data });
};

export const getRules = (data?: object) => {
  return http.request("post", baseUrlApi("/ie/get_rules"), { data });
};

export const ie = (data?: object) => {
  return http.request("post", baseUrlApi("/ie/ie"), { data });
};

export const getHistory = (data?: object) => {
  return http.request("post", baseUrlApi("/ie/get_history"), { data });
};
